<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>


</head>

<body>
    <div id="app">
        <input type="text" v-model="msg">
        <p>{{msg}}</p>
        <div>============</div>
        <input type="text" v-model="str">
        <p>{{str}}</p>
        <div>===========</div>
        <input type="checkbox" v-model="checked">


    </div>


    <!-- 引入vue -->
    <script src=" https://unpkg.com/vue@3/dist/vue.global.js">
    </script>
    <script>
        const { createApp, ref, reactive } = Vue;
        // 创建Vue实例
        const app = createApp({
            setup() {
                const msg = ref('hello world')
                const str = "hello"
                const checked = ref(false)

                return {
                    msg,
                    str,
                    checked

                }
            }
        })
        // 挂载到dom
        app.mount('#app')
    </script>
</body>

</html>